package suzf.top.usercenter.service.impl

import rx.Observable
import rx.functions.Func1
import suzf.top.base.data.protocol.BaseResp
import suzf.top.base.ext.convert
import suzf.top.base.ext.convertBoolean
import suzf.top.base.rx.BaseException
import suzf.top.base.rx.BaseFuncBoolean
import suzf.top.usercenter.data.protocol.UserInfo
import suzf.top.usercenter.data.repository.UploadTokenRepository
import suzf.top.usercenter.data.repository.UserRepository
import suzf.top.usercenter.service.UploadService
import suzf.top.usercenter.service.UserService
import javax.inject.Inject

/**
 *
 *========================
 * Created with AndroidStudio
 * Author:Mr.Su
 * Date:2019-09-08
 * Time:10:22
 * ========================
 */
class UploadServiceImpl @Inject constructor() : UploadService {

    @Inject
    lateinit var repository: UploadTokenRepository

    override fun getUploadToken(): Observable<String> {
        return repository.getUploadToken()
                .convert()
    }

}